<?php	
    if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();

	//default template values
    $nav_top = (isset($nav_top))? $nav_top : array();
    $nav_bottom = (isset($nav_bottom))? $nav_bottom : false;
    $script_includes = (isset($script_includes))? $script_includes : false;
    $hide_sidebar = (isset($hide_sidebar))? $hide_sidebar : false;
	$nav_menu_upper = array(
	
    );
	
	//override default nav menus with page values
	$nav_menu_upper = array_merge($nav_menu_upper, $nav_top);
	
	//get the menu parent and sub menu (if it exists)
	$nav_parent = false;
	foreach($nav_menu_upper as $nav => $selected){
		if($selected){
			$nav_parent = $nav;
		}
	}
	$nav_sub = false;
	foreach($nav_bottom as $nav => $selected){
		if($selected){
			$nav_sub = $nav;
		}
	}
	
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="description" content="There's a time and a place for everything. That time is college. Poor decisions is a site dedicated to people's dumb drunken shenaniganry and regret" />
		<meta name="keywords" content="lol, lols, booze, drunk, funny, poor decisions, college, humor, fml, tfln" /> 
		
		<title>JACKED Manager</title>

		<link rel="stylesheet" media="screen" href="/styles/main.css" />
		
		<link rel="shortcut icon" href="/favicon.ico">
		
		
		<?php }
		
			jackedJSLoadConstants();
			jackedJSConnect($jacked_jsVars);
		?>
		
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
		<script type="text/javascript" src="/scripts/FlipCounter/flipCounter.js"></script>
		<script src="/lib/raptorize/jquery.raptorize.1.0.js"></script>
		<?php
			JACKED_load_javascript($jacked_lib_js_includes);
		?>
		<script type="text/javascript">
			//hay
			
		</script>
		<?php 
			jackedJSLoadTemplateIncludes($nav_parent, $nav_sub);
		?>
		<!--analytics _gaq-->
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', '<?php echo JACKED_KEYS_GAQ; ?>']);
		  _gaq.push(['_trackPageview']);

		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	</head>
	
	
	<body>
	    <div class="raptorbutton" style="display:none;"></div>
		<h1>JACKED!</h1>
		<?php }
		flush(); ?>